package gl.web.util;

import java.util.HashMap;

import com.alibaba.fastjson.JSON;

public class TextUtils {

	public static boolean isEmpty(String input) {
		if (input==null||input.trim().length()==0) {
			return true;
		}
		return false;
	}
public static void main(String[] args) {
	 HashMap<String, Object> map = new HashMap<String, Object>(); 
	  map.put("username", "dE0oRhauOX75w0bEXvb29htNM6QQ6IjT91OO3uiK4/sIofwbMoVIFR4x+7I4q/Xxt+DBrJcAIV/t2JYs8Yg+5/eRJ511PNRd"); 
	  map.put("age", 24); 
	  map.put("sex", "男"); 
	System.out.println(JSON.toJSONString(map));
	String s = "123,";
	System.out.println(s.substring(0,s.lastIndexOf(",")));
	
	
}
}
